home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / OCEErrors.h < prev    next >
Text File  |  1995-07-06  |  18KB  |  341 lines

  1. /*
  2.      File:        OCEErrors.h
  3.  
  4.      Contains:    Apple Open Collaboration Environment Error Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __OCEERRORS__
  21. #define __OCEERRORS__
  22.  
  23.  
  24. #ifndef __ERRORS__
  25. #include <Errors.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. #if PRAGMA_ALIGN_SUPPORTED
  34. #pragma options align=mac68k
  35. #endif
  36.  
  37. #if PRAGMA_IMPORT_SUPPORTED
  38. #pragma import on
  39. #endif
  40.  
  41.  
  42. enum {
  43.     kOCEToolboxNotOpen            = -1500,                        /* Toolbox not open; perhaps its closing */
  44.     kOCEInvalidCommand            = -1501,                        /* Request code passed to a trap call is invalid */
  45.     kOCEInvalidRef                = -1502,                        /* a reference to an object is obsolete or invalid */
  46.     kOCEBufferTooSmall            = -1503,                        /* the buffer supplied is too small for the task */
  47.     kOCEVersionErr                = -1504,                        /* some manner of software version mismatch */
  48.     kOCESyncAsyncErr            = -1505,                        /* Op tried synchronously may only be done async, or vice versa */
  49.     kOCEInternalErr                = -1506,                        /* the OCE toolbox has an internal error */
  50.     kOCENotAnOwner                = -1507,                        /* this operation can only be done by the object's owner */
  51.     kOCENotImplemented            = -1508,                        /* Feature not implemented */
  52.     kOCENotAuthenticated        = -1509,                        /* The user must be authenticated */
  53.     kOCEAlreadyExists            = -1510,                        /* The object being added already exists */
  54.     kOCEDoesntExist                = -1511,                        /* the object being referenced doesn't exist or cannot be found */
  55.     kOCEConnectionErr            = -1512,                        /* Unable to open or maintain a network transport */
  56.     kOCEConnectionClosed        = -1513,                        /* Connect has closed */
  57.     kOCEInvalidRecipient        = -1514,                        /* Invalid recipient/address for this command */
  58.     kOCEInvalidIndex            = -1515,                        /* invalid index (out of range) */
  59.     kOCERefIsClosing            = -1516,                        /* Object references is being closed, cannot complete command */
  60.     kOCEHasPendingMsgs            = -1517,
  61.     kOCEInvalidConfiguration    = -1518,
  62.     kOCERequiredServicesNotAvailable = -1519,
  63.     kOCEServerInactive            = -1520,
  64.     kOCEMoreDiskSpaceNeeded        = -1521,                        /* Inadequate disk space to safely complete operation */
  65.     kOCEParamErr                = paramErr                        /* invalid parameter passed to toolbox */
  66. };
  67.  
  68. /* AOCE Authentication Errors (-1540 to -1609) */
  69. enum {
  70.     kOCEReadAccessDenied        = -1540,
  71.     kOCEWriteAccessDenied        = -1541,
  72.     kOCEAccessRightsInsufficient = -1542,                        /* stream needs to be authenticated, or not authorized, or someone other than agent trying to TPFC, or problem in server-to-server authentication */
  73.     kOCEUnsupportedCredentialsVersion = -1543,                    /* don't know how to read that version of credentials */
  74.     kOCECredentialsProblem        = -1544,                        /* couldn't successfully decrypt credentials */
  75.     kOCECredentialsImmature        = -1545,                        /* current time < first valid time */
  76.     kOCECredentialsExpired        = -1546,                        /* current time > expiry time */
  77.     kOCEProxyImmature            = -1547,                        /* current time < proxy start time */
  78.     kOCEProxyExpired            = -1548,                        /* current time > proxy expiry time */
  79.     kOCEDisallowedRecipient        = -1549,                        /* Recipient not specified in proxy */
  80.     kOCENoKeyFound                = -1550,                        /* found no key for entity in question */
  81.     kOCEPrincipalKeyNotFound    = -1551,                        /* couldn't decode proxy because principal has no key */
  82.     kOCERecipientKeyNotFound    = -1552,                        /* recipient has no key */
  83.     kOCEAgentKeyNotFound        = -1553,                        /* in TPFC, agent has no key */
  84.     kOCEKeyAlreadyRegistered    = -1554,                        /* entity already has a key */
  85.     kOCEMalformedKey            = -1555,                        /* key is of an unknown encryption method, or key doesn't match password */
  86.     kOCEUndesirableKey            = -1556,                        /* password too short, key too simple, or trying to change cluster key to the same value */
  87.     kOCEWrongIdentityOrKey        = -1557,                        /* In CheckIdentity, name doesn't exist or key is wrong */
  88.     kOCEInitiatorKeyProblem        = -1558,                        /* either we couldn't find the initiator's key or we found it but couldn't successfully decrypt instructions or proxy */
  89.     kOCEBadEncryptionMethod        = -1559,                        /* the specified encryption method is not supported */
  90.     kOCELocalIdentityDoesNotExist = -1560,                        /* LocalIdentity has to be setup */
  91.     kOCELocalAuthenticationFail    = -1561,                        /* LocalIdentity Login has to be done for this operation */
  92.     kOCELocalIdentitySetupExists = -1562,                        /* LocalIdentity setup exists, use change instead of setup */
  93.     kOCEDirectoryIdentitySetupExists = -1563,                    /* DirectoryIdentity setup exists, use change instead of setup */
  94.     kOCEDirectoryIdentitySetupDoesNotExist = -1564,                /* DirectoryIdentity setup does not exist */
  95.     kOCENotLocalIdentity        = -1565,                        /* Use LocalIdentity calls instead! */
  96.     kOCENoMoreIDs                = -1566,                        /* identity table is full */
  97.     kOCEUnknownID                = -1567,                        /* identity passed is not valid */
  98.     kOCEOperationDenied            = -1568,                        /* LocalID operation denied */
  99.     kOCEAmbiguousMatches        = -1569,                        /* ambiguous matches found in resolving CIDs (more than 1 CID) */
  100.     kOCENoASDSPWorkSpace        = -1570,                        /* No ASDSP workspace passed for Open Secure Stream */
  101.     kOCEAuthenticationTrouble    = -1571                            /* generic authentication problem */
  102. };
  103.  
  104. /* AOCE Catalog Errors (-1610 to -1680) */
  105. enum {
  106.     kOCENotLocal                = -1610,                        /* the server does not serve the requested dNode */
  107.     kOCETooBusy                    = -1611,                        /* server cannot complete call at this time */
  108.     kOCEDatabaseFull            = -1612,                        /* disk is full */
  109.     kOCETargetDirectoryInaccessible = -1613,                    /* Catalog server not responding */
  110.     kOCEBogusArgs                = -1614,                        /* Args not formatted correctly on the wire */
  111.     kOCENoSuchDNode                = -1615,                        /* the requested dNode does not exist */
  112.     kOCEDNodeUnavailable        = -1616,                        /* could not find any servers that serve the requested dNode */
  113.     kOCEBadRecordID                = -1617,                        /* invalid RecordID (usually name and/or type don't match cid) */
  114.     kOCENoSuchRecord            = -1618,                        /* the specified record does not exist */
  115.     kOCENoSuchAttributeValue    = -1619,                        /* The attribute value that was passed in does not exist */
  116.     kOCENoSuchPseudonym            = -1620,                        /* the specified pseudonym does not exist */
  117.     kOCEAttributeValueTooBig    = -1621,                        /* self-explanatory */
  118.     kOCETypeExists                = -1622,                        /* The type already exists in the record */
  119.     kOCEMoreData                = -1623,                        /* only a warning - buffer not big enough */
  120.     kOCERefNumBad                = -1624,                        /* RefNum is not valid */
  121.     kOCEStreamCreationErr        = -1625,                        /* problem creating stream */
  122.     kOCEOperationNotSupported    = -1626,                        /* the specified catalog does not support this operation */
  123.     kOCEPABNotOpen                = -1627,                        /* specified Personal Catalog is not open to make the operation */
  124.     kOCEDSAMInstallErr            = -1628,                        /* specified CSAM could not be installed */
  125.     kOCEDirListFullErr            = -1629,                        /* catalog list is full, try removing an entry */
  126.     kOCEDirectoryNotFoundErr    = -1630,                        /* catalog was not found in the list */
  127.     kOCEAbortNotSupportedForThisCall = -1631,                    /* this call cannot be aborted */
  128.     kOCEAborted                    = -1632,                        /* this call was aborted */
  129.     kOCEOCESetupRequired        = -1633,                        /* LocalIdentity Setup is required */
  130.     kOCEDSAMRecordNotFound        = -1634,                        /* CSAM Record not found */
  131.     kOCEDSAMNotInstantiated        = -1635,                        /* CSAM is not instantiated */
  132.     kOCEDSAMRecordExists        = -1636,                        /* CSAM record already exists */
  133.     kOCELengthError                = -1637,                        /* supplied buffer was too small */
  134.     kOCEBadStartingRecord        = -1638,                        /* Lookup starting record is not within range */
  135.     kOCEBadStartingAttribute    = -1639,                        /* Lookup starting attribute is not within range */
  136.     kOCEMoreAttrValue            = -1640,                        /* attribute value could not fit into buffer (even though it was the only value) */
  137.     kOCENoDupAllowed            = -1641,
  138.     kOCENoSuchAttributeType        = -1642,
  139.     kOCEMiscError                = -1643,                        /* some other error */
  140.     kOCENoSuchIcon                = -1644,                        /* no matching icon from GetDirectoryIcon */
  141.     kOCERLIsDontMatch            = -1645,                        /* RLIs do not match in lookup */
  142.     kOCEDirectoryCorrupt        = -1646                            /* Serious disk fill corruption problem */
  143. };
  144.  
  145. /* AOCE Standard Mail Errors (-1900 to -1949) */
  146. enum {
  147.     kSMPNotEnoughMemoryForAllRecips = -1900,
  148.     kSMPCopyInProgress            = -1901,
  149.     kSMPMailerNotInitialized    = -1902,
  150.     kSMPShouldNotAddContent        = -1903,
  151.     kSMPMailboxNotFound            = -1904,
  152.     kSMPNoNextLetter            = -1905,
  153.     kSMPHasOpenAttachments        = -1906,
  154.     kSMPFinderNotRunning        = -1907,
  155.     kSMPCommandDisabled            = -1908,
  156.     kSMPNoMailerInWindow        = -1909,
  157.     kSMPNoSuchAddress            = -1910,
  158.     kSMPMailerAlreadyInWindow    = -1911,
  159.     kSMPMailerUneditable        = -1912,
  160.     kSMPNoMatchingBegin            = -1913,
  161.     kSMPCannotSendReceivedLetter = -1914,
  162.     kSMPIllegalForDraftLetter    = -1915,
  163.     kSMPMailerCannotExpandOrContract = -1916,
  164.     kSMPMailerAlreadyExpandedOrContracted = -1917,
  165.     kSMPIllegalComponent        = -1918,
  166.     kSMPMailerAlreadyNotTarget    = -1919,
  167.     kSMPComponentIsAlreadyTarget = -1920,
  168.     kSMPRecordDoesNotContainAddress = -1921,
  169.     kSMPAddressAlreadyInList    = -1922,
  170.     kSMPIllegalSendFormats        = -1923,
  171.     kSMPInvalidAddressString    = -1924,
  172.     kSMPSubjectTooBig            = -1925,
  173.     kSMPParamCountErr            = -1926,                        /*  enclosure count != 1, while sendEnclosure Only == true. */
  174.     kSMPTooManyPages            = -1927,                        /*  Exceeding the image page limit. */
  175.     kSMPTooManyEnclosures        = -1928
  176. };
  177.  
  178. /* AOCE Standard Catalog Errors (-1950 to -1969) */
  179. enum {
  180.     kSDPNoSearchText            = -1950,
  181.     kSDPTooManyLoginAttempts    = -1951,
  182.     kSDPNoSelection                = -1952,
  183.     kSDPPersonalDirectoryRepairFailed = -1953
  184. };
  185.  
  186. /* AOCE Digital Signature Errors (-1970 to -1999) */
  187. enum {
  188.     kSIGOperationIncompatibleErr = -1970,                        /* context in use for different type of operation */
  189.     kSIGCertificateQueryDenied    = -1971,                        /* can't query certificates with this context */
  190.     kSIGVerifyFailedErr            = -1972,                        /* verification failed */
  191.     kSIGInvalidCredentialErr    = -1973,                        /* verified OK but credential out of date,  either pending or expired */
  192.     kSIGIndexErr                = -1974,                        /* the index given is outside the range of allowable values */
  193.     kSIGSignerErr                = -1975,                        /* problem with the signer or signature itself */
  194.     kSIGPasswordErr                = -1976,                        /* password is incorrect */
  195.     kSIGInternalsErr            = -1977,                        /* an internal error occurred like a bad digest, context or signature */
  196.     kSIGToolboxNotPresentErr    = -1978,                        /* for client services (ie servers) to report back - not retruned by the TB */
  197.     kSIGContextPrepareErr        = -1979,                        /* context either prepared with VerifyPrepare, SignPrepare or DigestPrepare already or has been corrupted */
  198.     kSIGNoDigestErr                = -1980,                        /* no digest in the signature */
  199.     kSIGConversionErr            = -1981,                        /* unabled to convert an attribute to Mac format */
  200.     kSIGSignerNotValidErr        = -1982,                        /* Signer has either expired or is pending and can not sign */
  201.     kSIGNoSignature                = -1983                            /* standard file signature not found */
  202. };
  203.  
  204. /* AOCE Templates Errors (-15000 to -15039) */
  205. enum {
  206.     kDETInvalidTargetAspectName    = -15000,                        /* Could not locate an aspect by name */
  207.     kDETInvalidTargetItemNumber    = -15001,                        /* Item number is target invalid (out of range 1..<number of children>) */
  208.     kDETInvalidTargetFromNonAspect = -15002,                    /* Target selection relative to non-aspect object which requires an aspect */
  209.     kDETInvalidTargetDSSpec        = -15003,                        /* Target DSSpec could not be resolved */
  210.     kDETUnknownTargetSelector    = -15004,                        /* Unknown selector type for target specification */
  211.     kDETInvalidTarget            = -15005,                        /* Target specification was invalid (for reasons other than those above) */
  212.     kDETTargetNotAnAspect        = -15006,                        /* Specified target object was not an aspect */
  213.     kDETInvalidCommandItemNumber = -15007,                        /* Command item number invalid (out of range 1..<number of items in selection>) */
  214.     kDETUnableToGetCommandItemSpec = -15008,                    /* Unable to retrieve item specification (internal error, possibly out of memory) */
  215.     kDETRequestedTypeUnavailable = -15009,                        /* Command item could not be represented in the form requested */
  216.     kDETInvalidDSSpec            = -15010,                        /* Could not resolve DSSpec (other than in target; see error above for targets) */
  217.     kDETUnableToAccessProperty    = -15011,                        /* Property could not be found and/or created */
  218.     kDETInfoPageNotOpen            = -15012,                        /* Info-page not open; request requires an open info-page */
  219.     kDETNoSuchView                = -15013,                        /* No view found with specified property number */
  220.     kDETCouldNotAddMenuItem        = -15014,                        /* Could not add item to dynamic menu */
  221.     kDETCouldNotRemoveMenuItem    = -15015,                        /* Could not remove item from dynamic menu */
  222.     kDETCouldNotFindMenuItem    = -15016,                        /* Could not find menu item */
  223.     kDETCouldNotFindCustomView    = -15017,                        /* Could not find custom view in info-page */
  224.     kDETInvalidReqFunction        = -15018,                        /* Invalid call-back request function */
  225.     kDETInvalidCallBack            = -15019,                        /* Invalid call-back (for reasons other than those above) */
  226.     kDETPropertyBusy            = -15020                        /* Edit is open on the property being set */
  227. };
  228.  
  229. /* AOCE Mail Errors (-15040 to -15089) */
  230. enum {
  231.     kMailInvalidOrder            = -15040,                        /* This object has already been written to and cannot be written again */
  232. /* handle non-zero offsets for now */
  233.     kMailInvalidSeqNum            = -15041,                        /* Invalid letter sequence o refers to an non–existent letter */
  234.     kMailAttrNotInHdr            = -15042,                        /* attribute does not exist in this letter header */
  235.     kMailHdrAttrMissing            = -15043,                        /* required attribute not written into letter header */
  236.     kMailBadEnclLengthErr        = -15044,                        /* incorrect number of bytes has been written after memForm of PutEnclosure */
  237.     kMailInvalidRequest            = -15045,                        /* cannot putAttr for report, putRcptReport for letter */
  238.     kMailInvalidPostItVersion    = -15046,                        /* cannot create new postit with this version */
  239.     kMailNotASlotInQ            = -15047,                        /* queueID does not refer to a slot's incoming queue */
  240.     kMailLtrNotOpen                = -15048,                        /* letter is not open, probably not cached in inQ */
  241.     kMailMissingMailCat            = -15049,                        /* trying to create message in inq, with no postIt */
  242.     kMailCannotWriteMailCat        = -15050,                        /* cannot update a mail catentry */
  243.     kMailTooManyTagsPerLetter    = -15051,                        /* cannot add more than kMaxTagsPerLetter tags */
  244.     kMailGwyDead                = -15052,                        /* MSAM died */
  245.     kMailIgnoredErr                = -15053,                        /* ePPC message was ignored */
  246.     kMailLengthErr                = -15054,                        /* ePPC message did not complete */
  247.     kMailTooManyErr                = -15055,                        /* Too many = request outstanding, */
  248.     kMailNoMSAMErr                = -15056,                        /* no MSAMs found in mailbox! or for command */
  249.     kMailCancelled                = -15057,
  250.     kMailSlotSuspended            = -15058,
  251.     kMailMSAMSuspended            = -15059,
  252.     kMailBadSlotInfo            = -15060,
  253.     kMailMalformedContent        = -15061,                        /* a mailed structure is malformed */
  254.     kMailNoSuchSlot                = -15062,                        /* no such slot */
  255.     kMailBadLtrInfo                = -15063,                        /* bad info there, can't change */
  256.     kMailSetFailed                = -15064,                        /* could not set letter info */
  257.     kMailBadConfig                = -15065,                        /* MSAM has bad config info */
  258.     kMailBadMSAM                = -15066,                        /* bad MSAM: not usable = reason unspec, */
  259.     kMailCannotLkupServerSlots    = -15067,                        /* cannot lookup adas for server mail slots */
  260.     kMailBadState                = -15068                        /* the state specifiy is not in any of defined */
  261. };
  262.  
  263. /* AOCE Messaging Errors (-15090 to -15169) */
  264. enum {
  265.     kIPMCantCreateIPMCatEntry    = -15090,
  266.     kIPMInvalidMsgType            = -15091,                        /* bad msg hint */
  267.     kIPMInvalidProcHint            = -15092,                        /* bad proc hint */
  268.     kIPMInvalidOffset            = -15093,                        /* bad offset for read/write */
  269.     kIPMUpdateCatFailed            = -15094,
  270.     kIPMMsgTypeReserved            = -15095,
  271.     kIPMNotInABlock                = -15096,
  272.     kIPMNestedMsgOpened            = -15097,
  273.     kIPMA1HdrCorrupt            = -15098,
  274.     kIPMCorruptDataStructures    = -15099,
  275.     kIPMAbortOfNestedMsg        = -15100,
  276.     kIPMBlockIsNotNestedMsg        = -15101,
  277.     kIPMCacheFillError            = -15102,
  278.     kIPMInvalidSender            = -15103,
  279.     kIPMNoRecipientsYet            = -15104,
  280.     kIPMInvalidFilter            = -15105,
  281.     kIPMAttrNotInHdr            = -15106,
  282.     kIPMBlkNotFound                = -15107,
  283.     kIPMStreamErr                = -15108,                        /* Error on stream (should this ever go out?) */
  284.     kIPMPortClosed                = -15109,                        /* Port closed (should this ever go out?) */
  285.     kIPMBinBusy                    = -15110,
  286.     kIPMCorruptedBin            = -15111,
  287.     kIPMBadQName                = -15112,
  288.     kIPMEndOfBin                = -15113,
  289.     kIPMBinNeedsConversion        = -15114,
  290.     kIPMMgrInternalErr            = -15115,
  291.     kIPMEltBusy                    = -15116,
  292.     kIPMEltClosedNotDeleted        = -15117,
  293.     kIPMBadContext                = -15118,
  294.     kIPMContextIsClosing        = -15119,
  295.     kIPMeoQ                        = -15120,
  296.     kIPMQOutOfSpace                = -15121,
  297.     kIPMEltNotFound                = -15122,
  298.     kIPMBinOutOfSpace            = -15123,
  299.     kIPMeoCatEntry                = -15124,
  300.     kIPMeoElt                    = -15125,
  301.     kIPMQBusy                    = -15126,
  302.     kIPMNotSameBin                = -15127,
  303.     kIPMNoMoreServices            = -15128,
  304.     kIPMLookupAttrTooBig        = -15129,                        /* attribute in lookup is too big */
  305.     kIPMUnknownUAM                = -15130,
  306.     kIPMUnsupportedLogin        = -15131,
  307.     kIPMLogInUnknown            = -15132,
  308.     kIPMNoMoreFilters            = -15133,
  309.     kIPMCouldNotReadInfoReply    = -15134,
  310.     kIPMInvalidUser                = -15135,
  311.     kIPMNoMoreSessions            = -15136,
  312.     kIPMNilUserProc                = -15137,
  313.     kIPMBadCatSize                = -15138,
  314.     kIPMIncompleteMsg            = -15139,
  315.     kIPMNoResponsibleTunnel        = -15140,
  316.     kIPMAccessDenied            = -15141,
  317.     kIPMReplyParamUnderrun        = -15142,                        /* Too few reply parameters */
  318.     kIPMReplyParamOverrun        = -15143,                        /* Too many reply parameters */
  319.     kIPMRequestParamUnderrun    = -15144,                        /* Too few request parameters */
  320.     kIPMOutOfSync                = -15145,                        /* Protocol sync. error */
  321.     kIPMNoAttrsFound            = -15146,                        /* couldn't find any attrs in lookup */
  322.     kIPMWrongAttrTag            = -15147,                        /* wrong attr tag in adas lookup */
  323.     kIPMNullCID                    = -15148,                        /* null cid in enumerate */
  324.     kIPMBadMailSlotAttrVal        = -15149                        /* invalid mailslot attr value */
  325. };
  326.  
  327.  
  328. #if PRAGMA_IMPORT_SUPPORTED
  329. #pragma import off
  330. #endif
  331.  
  332. #if PRAGMA_ALIGN_SUPPORTED
  333. #pragma options align=reset
  334. #endif
  335.  
  336. #ifdef __cplusplus
  337. }
  338. #endif
  339.  
  340. #endif /* __OCEERRORS__ */
  341.